package com.hhkj.study.admin.order.model.podo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hhkj.study.admin.order.entity.OrderItem;
import lombok.Data;

import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

/**
*
* @author SERVER
* @since 2024-09-18
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class OrderItemDo extends OrderItem {

    /**
     * 课程id
     */
    private Long courseId;

    /**
     * 父订单状态
     */
    private String orderStatus;

    /**
     * 子订单id列表
     */
    private List<Long> orderItemIdList;

    /**
     * 课程id列表字符串 用于统计学员课程
     */
    private String courseIdListStr;

    /**
     * 订单创建时间开始范围
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createStartDate;

    /**
     * 订单创建时间结束范围
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createEndDate;
}